﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:myBoard_App_Portfolio="clr-namespace:myBoard.App.Portfolio"
	x:Class="myBoard.App.Portfolio.ProjectsSection"
	x:Name="UserControl"
	Width="657" Height="284">

	<UserControl.Resources>
		<ObjectDataProvider x:Key="PorfolioDataSource" d:IsDataSource="True" ObjectType="{x:Type myBoard_App_Portfolio:Datas}"/>
		<DataTemplate x:Key="MyProjectsTemplate">
			<Border HorizontalAlignment="Stretch" Margin="0,0,0,2">
				<Image Cursor="Hand" Width="Auto" Height="59" Stretch="UniformToFill" Source="{Binding Path=ThumbSnapshot, Mode=OneWay}" HorizontalAlignment="Center" Margin="3,3,3,3" VerticalAlignment="Center"/>
			</Border>
		</DataTemplate>
		<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
		<Style x:Key="LastestProjectsListbxStyle" TargetType="{x:Type ListBox}">
			<Setter Property="Background" Value="{StaticResource {x:Static SystemColors.WindowBrushKey}}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{StaticResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBox}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
							<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Visibility="Visible" Width="171.5" Height="248"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" TargetName="Bd" Value="{StaticResource {x:Static SystemColors.ControlBrushKey}}"/>
							</Trigger>
							<Trigger Property="IsGrouping" Value="true">
								<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

    <Storyboard x:Key="GetIn" BeginTime="00:00:01">
      <DoubleAnimation Duration="00:00:00.50000" DecelerationRatio="1" Storyboard.TargetName="UserControl" Storyboard.TargetProperty="(Canvas.Top)" From="284" To="0"/>
    </Storyboard>
		<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" Margin="0,13,0,0" BorderBrush="#339E9E9E" BorderThickness="1,1,1,1">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
	<Border Height="284" BorderBrush="{x:Null}" BorderThickness="0,3,0,3" Width="653" Background="{x:Null}">
		<Canvas x:Name="_real" Width="653" Height="278"/>
	</Border>
</UserControl>